java get unique elements from array

76

java get unique elements from array -

String[] unique = Arrays.stream(array).distinct().toArray(String[]::new);

Comments

Submit
0 Comments